<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Change profile picture</h2>
   <div class="inputform">
   <img  src='<%=Url.Content("~/ResourceStorage/Profile/" + User.Identity.Name + ".jpg") %>'
            alt='profile picture' />        

    <fieldset>
        
        <% 
            using (
                Html.BeginForm("Change", "ChangeProfilePicture", FormMethod.Post, new { enctype = "multipart/form-data" })
                )
            {%>
            
        <input type="file" id="fileUpload" name="fileUpload" />        
        
            <input type="submit" value="Upload file" />
        <%
            }%>
               
    </fieldset>
    </div>
</asp:Content>
